import request from '@/utils/request'

// 查询客户政策历史列表
export function listPolicyHis(query) {
  return request({
    url: '/baseMain/policyHis/list',
    method: 'get',
    params: query
  })
}
export function listPolicyHisNoPages(query) {
  return request({
    url: '/baseMain/policyHis/listPolicyHisNoPages',
    method: 'get',
    params: query
  })
}


// 查询客户政策历史详细
export function getPolicyHis(id) {
  return request({
    url: '/baseMain/policyHis/' + id,
    method: 'get'
  })
}

// 新增客户政策历史
export function addPolicyHis(data) {
  return request({
    url: '/baseMain/policyHis',
    method: 'post',
    data: data
  })
}

// 修改客户政策历史
export function updatePolicyHis(data) {
  return request({
    url: '/baseMain/policyHis',
    method: 'put',
    data: data
  })
}

// 删除客户政策历史
export function delPolicyHis(id) {
  return request({
    url: '/baseMain/policyHis/' + id,
    method: 'delete'
  })
}
